﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DoAnTriTueNhanTao
{
    public partial class CostInput : Form
    {
        public CostInput()
        {
            InitializeComponent();
        }

        private void button_cost_ok_Click(object sender, EventArgs e)
        {
            try
            {
                PublicAndStatic.Cost = int.Parse(textBox_Cost.Text);
                this.Close();
            }
            catch
            {
                MessageBox.Show("Chi phí nhập không chính xác! ");
            }
        }

        private void button_cost_cancel_Click(object sender, EventArgs e)
        {
            PublicAndStatic.Cost = -1;
            this.Close();
        }
    }
}
